//
// Created by 25137 on 2024/2/13.
//

#include "miodevicebase.h"
#include <iostream>
#include <utility>
MIODeviceBase::MIODeviceBase(COM_Info info, int buffer_size) :
info(std::move(info)),buffer_size(buffer_size),buffer(new char[buffer_size]),buffe(new char[buffer_size]){
    this->callback =[] (MIODeviceBase  device) {
        std::cout<<"["<<device.info.name<<"]"<<device.buffer<<std::endl;
    };
}
